using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class UIManager : MonoBehaviour
{
    public Text gameOverTip;

    private int fontSize=80;
    private float dt;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        dt+=Time.deltaTime;
        if(dt>1)
        {
            dt=0f;
            fontSize+=50;
            gameOverTip.fontSize=fontSize;
        }
        if(fontSize>500)
        {
            SceneManager.LoadScene("BeforePlayGame");
        }

    }
}
